package zyd.springboot.springbootmybatis.mapper;

import org.apache.ibatis.annotations.Mapper;
import zyd.springboot.springbootmybatis.entity.User;

import java.util.List;

/**
 * 用户模块的持久层接口
 */
public interface UserMapper {

    /**
     * 添加一行用户记录
     * @param user 用户记录
     * @return 添加成功的数据条数
     */
   public Integer insertUser(User user);

    public List<User> findAll();
    public User findUserByUname(String username);
}
